package com.etc.myblog.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Article {
	private int articleId;
	private String articleTitle;
	private Date articleRelTime;
	private Date articleLastTime;
	private int articleClick;
	private ArticleCat articlecat;
	private User user;
	private Scolumn scolumn;
	private String articleType;
	private String articleContent;
	private String articleRoundup;
	public Article(int articleId) {
		super();
		this.articleId = articleId;
	}
	public Article() {
		super();
	}
	private String articleStatus;
	private String articleImage;
	
	public String getArticleImage() {
		return articleImage;
	}
	public void setArticleImage(String articleImage) {
		this.articleImage = articleImage;
	}
	public int getArticleId() {
		return articleId;
	}
	public void setArticleId(int articleId) {
		this.articleId = articleId;
	}
	public String getArticleTitle() {
		return articleTitle;
	}
	public void setArticleTitle(String articleTitle) {
		this.articleTitle = articleTitle;
	}
	public Date getArticleRelTime() {
		return articleRelTime;
	}
	public void setArticleRelTime(Date articleRelTime) {
		this.articleRelTime = articleRelTime;
	}
	public Date getArticleLastTime() {
		
		return articleLastTime;
	}
	public void setArticleLastTime(Date articleLastTime) {
		this.articleLastTime = articleLastTime;
	}
	public int getArticleClick() {
		return articleClick;
	}
	public void setArticleClick(int articleClick) {
		this.articleClick = articleClick;
	}
	public ArticleCat getArticlecat() {
		return articlecat;
	}
	public void setArticlecat(ArticleCat articlecat) {
		this.articlecat = articlecat;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Scolumn getColumn() {
		return scolumn;
	}
	public void setColumn(Scolumn column) {
		this.scolumn = column;
	}
	public String getArticleType() {
		return articleType;
	}
	
	public void setArticleType(String articleType) {
		this.articleType = articleType;
	}
	public String getArticleContent() {
		return articleContent;
	}
	public void setArticleContent(String articleContent) {
		this.articleContent = articleContent;
	}
	public String getArticleRoundup() {
		return articleRoundup;
	}
	public void setArticleRoundup(String articleRoundup) {
		this.articleRoundup = articleRoundup;
	}
	public String getArticleStatus() {
		return articleStatus;
	}
	public void setArticleStatus(String articleStatus) {
		this.articleStatus = articleStatus;
	}
	public String getStringDate() {
		SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		   String dateString = formatter.format(articleRelTime);
		   return dateString;

	}
	public String getStringDate2() {
		SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
		   String dateString = formatter.format(articleRelTime);
		   return dateString;

	}
	
	

}
